<?php
/* @var $this ProductController */
/* @var $model Product */
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'产品管理'=>array($this->pre_module_url.'/productSale/admin'),
	'宝贝推荐'=>array($this->pre_module_url.'/product/recommend'),
	'推荐页面管理'=>array($this->pre_module_url.'/product/addpage'),
);
?>

<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="" class="pl15">菜单名称</th>
		<th width="25%">菜单地址</th>
		<th width="23%">菜单类型</th>
		<th width="14%">状态</th>
		<th width="15%">选择</th>                                                    
	</tr>
</table>

<?php $form = $this->beginWidget ( 'CActiveForm', array (
		'action' => $this->pre_module_url . '/product/ifposition',
		'method' => 'post' 
		));?>
        <ul class="main_class">
            <?php
			$this->widget ( 'zii.widgets.CListView', array (
					'dataProvider' => Nav::model ()->getTop (),
					'itemView' => '_nav_view',
					'emptyText' => "",
					'template' => '{summary}{items}',
					'enablePagination' => 'false',
					'summaryText' => '',
					'tagName' => 'none',
					'itemsTagName'=>'ul',
					'itemsCssClass' => '',
					'itemsOptions' => array ('class' => 'type_list'),
					'batchItem'=>array(
						//移动到分类
						CHtml::submitButton(Yii::t('adm','Save'),array('class'=>'mem_btn mem_btn03')),
					),
			) );
			?>
        </ul>
<?php $this->endWidget(); ?>


<script type="text/javascript">
$(function(){
	$('.ico_fold').bind('click',function(){
		$(this).parent().parent().next('ul').toggle();
		$(this).toggleClass('ico_del');
		$(this).toggleClass('ico_fold');
	});
});
</script>